package com.zzuli.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * user_info
 * @author
 */
@Data
@ToString
@ExcelTarget("用户信息表")
public class UserInfoEntity implements Serializable {
    /**
     * 用户Id
     */
    private Integer userId;

    /**
     * 用户名
     */
    @Excel(name = "用户名", height = 20, width = 30)
    private String userName;

    /**
     * 密码
     */
    @Excel(name = "用户密码", height = 20, width = 30)
    private String userPwd;

    /**
     * 性别
     */
    @Excel(name = "用户性别", height = 20, width = 30)
    private String userSex;

    @Excel(name = "用户年龄", height = 20, width = 30)
    private Integer userAge;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
